<?php 
	global $router;
	function ActiveMenu($id) {
		$router = new Router();
		echo ($router->id == $id ? "-active" : "");
	}
?>

<li class="product-1-a<?php ActiveMenu("a4"); ?>"><a href="<?php echo $router->lang; ?>/game/a4"><span></span></a></li>
<li class="product-2-a<?php ActiveMenu("a6"); ?>"><a href="<?php echo $router->lang; ?>/game/a6"><span></span></a></li>
<li class="product-3-a<?php ActiveMenu("a8"); ?>"><a href="<?php echo $router->lang; ?>/game/a8"><span></span></a></li>